var vm = new Vue({
    el:"#app",
    data:{
        hello:"欢迎使用",
        serverStatus:"未知",
        isEnable:true
    },
    created:function () {
        var parent = this;
        checkServer(function (data) {
            if (0 == data.code){
                parent.serverStatus = "正常";
                parent.isEnable = false;
            }else {
                parent.serverStatus = "已下线";
            }
        })
    }
});